import getuser from '@/util/getuser'
import router from '@/router/index'

function checkLogin() {
  var id = getuser().userId;

  if (!id) {
    router.push('/login')
    return;
  }
}
export default checkLogin;
